<%	
    # Create the helper
  	flex_scaffold_helper = FlexScaffoldHelper.new("#{actions.first.camelcase}")

-%>package <%= class_name.downcase.gsub('::','.') %>.command
{

	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.collections.ArrayCollection;
	import mx.rpc.IResponder;
	import mx.rpc.events.FaultEvent;
	
	import org.genuflex.utils.GenuflexDataFunctions;	
	
	import <%= class_name.downcase.gsub('::','.') %>.business.<%= actions.first.camelcase %>Delegate;
	import <%= class_name.downcase.gsub('::','.') %>.model.<%= file_name.camelcase %>ModelLocator;
	import <%= class_name.downcase.gsub('::','.') %>.vo.<%= actions.first.camelcase %>VO;
<%
	#Import any classes for a belongs-to relationship
	if !flex_scaffold_helper.belongs_to_class_names.nil?
		flex_scaffold_helper.belongs_to_class_names.values.each do | belongs_to_assoc |
%>	
	import <%= class_name.downcase.gsub('::','.') %>.vo.<%= belongs_to_assoc.class_name %>VO;<%
		end
	end
	
	#Import any classes for a has-many relationship
	flex_scaffold_helper.has_many_associations.each do | assoc |
%>	
	import <%= class_name.downcase.gsub('::','.') %>.vo.<%= assoc.klass().to_s %>VO;<%
	end

	#Import any classes for a habtm relationship
	flex_scaffold_helper.habtm_associations.each do | assoc |
%>	
	import <%= class_name.downcase.gsub('::','.') %>.vo.<%= assoc.klass().to_s %>VO;<%
	end
%>

	public class <%= actions.first.camelcase %>BaseCommand extends <%= file_name.camelcase %>Command
	{	
		public function <%= actions.first.camelcase %>BaseCommand() {
		
			//Specify the class of data being returned and where
			// on the model locator it should go
			objectClass = <%= actions.first.camelcase %>VO;
			modelCollectionName = "<%= flex_scaffold_helper.obj_name.pluralize %>";
		}		
	}
}